home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
NEWTEXTF
/
SOURCE_C
/
MYLIBRAR.H
< prev
next >
Wrap
Text File
|
1990-11-28
|
2KB
|
59 lines
#define _H_MyLibrary
#include "MyTypes.h"
/* C11 is a C string. */
/* C4 is a C string. */
/* Str255 is a Pascal string. */
Boolean CEqualsC (char *fstr, char *sstr);
Boolean PEqualsP (unsigned char *fstr, unsigned char *sstr);
Boolean HandleEqualsC (Handle hndl, char *cstr);
long CLength (char *cstr);
Handle HandleToNewHandle (Handle hndl);
int HandleToInt (Handle hndl, int *errnum);
unsigned int HandleToUInt (Handle hndl, int *errnum);
long HandleToLong (Handle hndl, int *errnum);
unsigned long HandleToULong (Handle hndl, int *errnum);
ResType HandleToResType (Handle hndl);
unsigned char *HandleToStr255 (Handle hndl, Str255 pstr);
Handle CToNewHandle (char *cstr);
int CToInt (char *cstr, int *errnum);
unsigned int CToUInt (char *cstr, int *errnum);
long CToLong (char *cstr, int *errnum);
unsigned long CToULong (char *cstr, int *errnum);
ResType CToResType (char *cstr);
unsigned char *CToStr255 (char *cstr, Str255 pstr);
unsigned char *CAfterStr255 (char *cstr, Str255 pstr);
char *IntToC (int num, C11 cstr);
Handle IntToNewHandle (int num);
char *UIntToC (unsigned int num, C11 cstr);
Handle UIntToNewHandle (unsigned int num);
char *LongToC (long num, C11 cstr);
Handle LongToNewHandle (long num);
char *ULongToC (unsigned long num, C11 cstr);
Handle ULongToNewHandle (unsigned long num);
char *ResTypeToC (ResType theType, C4 cstr);
Handle PToNewHandle (unsigned char *pstr);
/* The following functions aren't bulletproof. */
unsigned char *CToP (char *cstr, unsigned char *pstr);
char *PToC (unsigned char *pstr, char *cstr);
char *CToC (char *sstr, char *dstr);
char *CToCN (char *sstr, char *dstr, long *length);
char *PToCN (unsigned char *pstr, char *cstr, long *length);
char *IntToCN (int num, char *cstr, long *length);
char *UIntToCN (unsigned int num, char *cstr, long *length);
char *LongToCN (long num, char *cstr, long *length);
char *ULongToCN (unsigned long num, char *cstr, long *length);
char *ResTypeToCN (ResType theType, char *cstr, long *length);